﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Inventory/InvMaster.master" AutoEventWireup="true" Theme="ItemsSkin" CodeFile="ListLoc-Sub.aspx.cs" Inherits="_Default" %>


<asp:Content ID="cont" ContentPlaceHolderID="hd" runat="server">
    <script src="../../Scripts/jquery-1.6.4-dev.js" type="text/javascript"></script>
    <script src="../../Scripts/MasterScript.js" type="text/javascript"></script>
    
    <link href="../Loc-SubLoc%20Mangement/LocSubStyles.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        $(function () {

//            $('#divLocOptsList').hide();
//            $('#divSubLocOptsList').hide();
//            $('#divInvSrchList').hide();
//            $('#divSubLocSrchList').hide();


            $('#divInvOptsClick').click(function () { $('#divLocOptsList').slideToggle(1000); });
            $('#divSubLocOptsClick').click(function () { $('#divSubLocOptsList').slideToggle(1000); });


            $('#divInvSrchClick').click(function () { $('#divInvSrchList').slideToggle(1000); });
            $('#divSubLocSrchClick').click(function () { $('#divSubLocSrchList').slideToggle(1000); });


            $("#ancAddLoc").click(function () { $('#extCnt').load('LocInfo.aspx?Operation=Register').hide().fadeToggle(1000); });
            $("#ancEditLoc").click(function () { $('#extCnt').load('LocInfo.aspx?Operation=Edit').hide().fadeToggle(1000); });
            $("#ancDeleteLoc").click(function () { $('#extCnt').load('LocInfo.aspx?Operation=Delete').hide().fadeToggle(1000); });

            $('#ancAddSub').click(function () { $('#extCnt').load('SubLocInfo.aspx?Operation=Register').hide().fadeToggle(1000); });
            $('#ancEditSub').click(function () { $('#extCnt').load('SubLocInfo.aspx?Operation=Edit').hide().fadeToggle(1000); });
            $('#ancDeleteSub').click(function () { $('#extCnt').load('SubLocInfo.aspx?Operation=Delete').hide().fadeToggle(1000); });
        }
    );

</script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
    <ContentTemplate>
    <div id="extCnt"></div>
    </ContentTemplate>
    </asp:UpdatePanel>
    
    
    <div id="divOpts" class="divOptions">
    
    <div id="divLocOptsList" class="divOptionsList" style="top:5%">
    <table>

    <tr align="center" style="background-color:#FFCC00"><td colspan="2">Inventory Options</td></tr>
    
    <tr><td colspan="2"></td></tr>
    <tr><td colspan="2"><a href="#" style="color:White;" id="ancAddLoc">Add Inventory</a></td></tr>
    <tr><td colspan="2"></td></tr>
    <tr><td colspan="2"><a href="#" style="color:White;" id="ancEditLoc">Edit Inventory</a></td></tr>
    <tr><td colspan="2"></td></tr>
    <tr><td colspan="2"><a href="#" style="color:White;" id="ancDeleteLoc">Delete Inventory</a></td></tr>
    <tr><td colspan="2"></td></tr>
   </table>
    </div>
    
    <div id="divSubLocOptsList"class="divOptionsList" style="top:40%">
     <table>
     <tr align="center" style="background-color:#FFCC00"><td colspan="2">Sub Location Options</td></tr>
    <tr><td colspan="2"></td></tr>
    <tr><td colspan="2"><a style="color:White;" href="#" id="ancAddSub">Add Sub-Loc</a></td></tr>
    <tr><td colspan="2"></td></tr>
    <tr><td colspan="2"><a style="color:White;" href="#" id="ancEditSub">Edit Sub-Loc</a></td></tr>
    <tr><td colspan="2"></td></tr>
    <tr><td colspan="2"><a style="color:White;" href="#" id="ancDeleteSub">Delete sub-Loc</a></td></tr>
    <tr><td colspan="2"></td></tr>
    </table>
        </div>
    
    </div>

    <div class="divLeftArrowImg">
        <div id="divInvOptsClick"  style="position:absolute; cursor:pointer; top:5%"><img width="100%" src="../../Images/leftArrow.png" /></div>
        <div id="divSubLocOptsClick"  style="position:absolute; cursor:pointer; top:40%"><img width="100%" src="../../Images/leftArrow.png" /></div>
    </div>

    
    <div class="divLocs">
    <div style="width:100%;  height:10%; text-align:center; background-color:Orange"><span style="font-size:large;font-weight:bold;">Inventory Locations</span></div>
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <asp:GridView ID="GridInventory" PageSize="2" AllowPaging="True" DataKeyNames="ID"
            runat="server" BackColor="White" BorderColor="#999999" BorderStyle="Solid" 
            BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical" 
            EnableSortingAndPagingCallbacks="false" ShowHeaderWhenEmpty="True" 
            AutoGenerateSelectButton="True" EnablePersistedSelection="True"
 onpageindexchanging="GridInventory_PageIndexChanging" 
            onselectedindexchanged="GridInventory_SelectedIndexChanged">

            <AlternatingRowStyle BackColor="#CCCCCC" />
            <FooterStyle BackColor="#CCCCCC" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerSettings Mode="Numeric" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />
           
        </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
   
     <div class="divSubLocs">
     <div style="width:100%; height:10%; text-align:center; background-color:Orange"><span style="font-size:large;font-weight:bold;">Inventory Sub-Location</span></div>
     <asp:UpdatePanel ID="UpdatePanel2" runat="server">
    <ContentTemplate>
     <asp:GridView ID="GridSubLoc" PageSize="7" AllowPaging="True" 
            runat="server" BackColor="White" BorderColor="#999999" BorderStyle="Solid"  
            BorderWidth="1px" CellPadding="3" ForeColor="Black" GridLines="Vertical"  ShowHeaderWhenEmpty="True"
            EnableSortingAndPagingCallbacks="false" AutoGenerateSelectButton="True"
            onpageindexchanging="GridSubLoc_PageIndexChanging" 
            onselectedindexchanged="GridSubLoc_SelectedIndexChanged" >
            <AlternatingRowStyle BackColor="#CCCCCC" />
            <FooterStyle BackColor="#CCCCCC" />
            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
            <PagerSettings Mode="NumericFirstLast" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#808080" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#383838" />
            </asp:GridView>
            </ContentTemplate>
            </asp:UpdatePanel>
        
         
     </div>       
        

    <div class="divRightArrowImg">
        <div id="divInvSrchClick" style="position:absolute; cursor:pointer; top:5%"><img width="100%" src="../../Images/rightArrow.png" /></div>
        <div id="divSubLocSrchClick" style="position:absolute; cursor:pointer; top:40%"><img width="100%" src="../../Images/rightArrow.png" /></div>
    </div>

    <div id="divSrch" class="divSearch">
    <div id="divInvSrchList" style="position:absolute; top:5%">
    <table>

    <tr align="center" style="background-color:#FFCC00;"> <td>Inventory Search</td></tr>
            
    <tr><td><asp:Label ID="Label2" SkinID="Search" runat="server" Text="Inventory Name"></asp:Label></td></tr>
    <tr align="center"><td><asp:TextBox ID="txt_InvSearch" SkinID="Search" runat="server"></asp:TextBox></td></tr>
    <tr> <td/></tr>
    <tr> <td/></tr>
    <tr align="center"><td>
        <asp:Button ID="btn_SearchLoc" skinid="Search" 
            runat="server" Text="Search" onclick="btn_SearchLoc_Click" /></td></tr>
    </table>
    </div>

    <div id="divSubLocSrchList" style="position:absolute; top:40%">
        <table>
    <tr align="center" style="background-color:#FFCC00;"> <td>Sub Location Search</td></tr>
            
    <tr> <td/></tr>
    
    <tr><td><asp:Label ID="Label4" SkinID="Search" runat="server" Text="sub-Location Name:"></asp:Label></td></tr>
    <tr><td><asp:TextBox ID="txt_SubLocName" SkinID="Search" runat="server"></asp:TextBox></td></tr>
    <tr> <td/></tr>
    <tr> <td/></tr>
    <tr align="center"><td><asp:Button ID="btn_SearchSubLoc" onclick="btn_SearchSubLoc_Click" SkinID="Search" runat="server" Text="Search" /></td></tr>
    </table>
        </div>
    </div>

</asp:Content>

